package com.workflow.user.dao;

import com.workflow.user.dao.api.UserAccountDAO;
import com.workflow.user.entity.UserAccount;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Tony
 */
public class UserAccountDAOImpl implements UserAccountDAO {

    @PersistenceContext
    private EntityManager em;

    @Override
    public Long save(String username, String password) {
        UserAccount userAccount = new UserAccount(username, password);
        em.persist(userAccount);
        return null;
    }
}
